package com.yidian.server.system;

import com.yidian.entity.PageResult;
import com.yidian.pojo.system.Admin;

import java.util.List;
import java.util.Map;

/**
 * @author whb
 * @create 2021-06-08 15:56
 * @desciption 系统管理账户Service接口
 */
public interface AdminService {
    public List<Admin> findAll();

    public PageResult<Admin> findPage(int page, int size);

    public List<Admin> findList(Map<String, Object> searchMap);

    public PageResult<Admin> findPage(Map<String, Object> searchMap, int page, int size);

    public Admin findById(Integer id);

    public void add(Admin admin);

    public void update(Admin admin);

    public void delete(Integer id);
}
